//- Copyright (c) 2016 Lucky Byte, Inc.
input(type="hidden" name="serial" value="#{record.serial || ''}")
input(type="hidden" name="uuid" value="#{record.uuid || ''}")

h4.ui.dividing.header
  i.caret.down.icon.link.grey.accordion
  | 基本信息

.fields
  .field.eight.wide.required
    label 资金池代号: 
    .ui.input
      input(type="text" name="name" placeholder="必填"
        value="#{record.name || ''}")
  .field.four.wide.required
    label 透支额度: 
    .ui.input.left.icon
      i.icon.yen
      input(type="text" name="overdraw" placeholder="必填"
        value="#{record.overdraw || '0.0'}")
  .field.four.wide.required
    label 警戒线: 
    .ui.input.left.icon
      i.icon.yen
      input(type="text" name="cordon" placeholder="必填"
        value="#{record.cordon || '200.00'}")

h4.ui.dividing.header
  i.caret.down.icon.link.grey.accordion
  | 代理商信息

.fields
  .field.six.wide.required
    label 代理商名称: 
    .ui.input
      input(type="text" name="agent" placeholder="必填"
        value="#{record.agent || ''}")
  .field.two.wide.required
    label 联系人:
    .ui.input.left.icon
      i.icon.user
      input(type="text" name="contact" placeholder="必填"
        value="#{record.contact || ''}")
  .field.three.wide.required
    label 联系电话:
    .ui.input.left.icon
      i.icon.mobile
      input(type="text" name="phone" placeholder="必填"
        value="#{record.phone || ''}")
  .field.five.wide
    label 联系邮箱:
    .ui.input.left.icon
      i.icon.mail.outline
      input(type="text" name="email" value="#{record.email || ''}")

.fields
  .field.sixteen.wide
    label 联系地址:
    .ui.input.left.icon
      i.icon.marker
      input(type="text" name="address" value="#{record.address || ''}")

h4.ui.dividing.header
  i.caret.down.icon.link.grey.accordion
  | 备注信息

.fields
  textarea(name="notes" type="text" rows="3"
    placeholder="在此输入备忘信息")= record.notes || ''
